package com.example.tijianserver.controller;

import com.example.tijianserver.dto.CalendarRequestDto;
import com.example.tijianserver.response.ApiRestResponse;
import com.example.tijianserver.service.CalendarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CalendarController {
    @Autowired
    CalendarService calendarService;

    @RequestMapping("/getCalendar")
    public ApiRestResponse getCalendar(@RequestBody CalendarRequestDto calendarRequestDto){

        return ApiRestResponse.success(calendarService.listAppointmentCalendar(calendarRequestDto));
    }    //前端传了三个参数： year month hpId
}
